import type { RouteRecordNormalized } from 'vue-router'

type PageButton = {
  code: string
  id: string
  hasChildren: boolean
  name: string
  parentId: string
  parentName: string
  path: string
  children: PageButton[]
}
export interface AppState {
  theme: string
  colorWeak: boolean
  navbar: boolean
  menu: boolean
  topMenu: boolean
  hideMenu: boolean
  menuCollapse: boolean
  footer: boolean
  themeColor: string
  menuWidth: number
  globalSettings: boolean
  device: string
  tabBar: boolean
  // tipShow: boolean
  menuFromServer: boolean
  serverMenu: RouteRecordNormalized[]
  [key: string]: unknown
  pageButtons: PageButton[]
}
